package com.nut.lmsc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nut.lmsc.entity.CircleShop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CircleShopMapper extends BaseMapper<CircleShop> {

    @Select("select * from biz_circle_shop where circle_id=#{circleId}")
    List<CircleShop> selectByCircleId(Integer circleId);

    Page<CircleShop> listPage(Page page,
                                @Param("circleId") Integer circleId,
                                @Param("shopName") String shopName,
                                @Param("status") Integer status);

}
